package com.lycx.businessmanager.model;

import java.util.Date;
import java.util.List;

import com.lycx.businessmanager.util.MyUtils;


public class Dept {

	private int id;
	private String deptName;
	private int parentDeptId;
	private Date createTime;
	private List<Dept> children;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getDeptName() {
		return deptName;
	}
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public int getParentDeptId() {
		return parentDeptId;
	}
	public void setParentDeptId(int parentDeptId) {
		this.parentDeptId = parentDeptId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public String getCreateTimeStr(){
		return MyUtils.dateToString(this.createTime);
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public List<Dept> getChildren() {
		return children;
	}
	public void setChildren(List<Dept> children) {
		this.children = children;
	} 
	
	
}
